package Week4;

public class Point {

	// Declare member variables
	private double x,y;

	// 1st constructor for point using x, y coordinates
	public Point(double xcoord, double ycoord){
		x = xcoord;
		y = ycoord;
	}

	//2nd constructor for point using 0, 0 coordinates
	public Point(){
		x = 0;
		y = 0;
	}

	// Override for printing point
	public String toString() {
		return "(" + x + ", " + y + ")";
	}

	// Getters and setters
	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

}
